<template>
  <div class="demo">
    <h2>学生名称：{{ name }}</h2>
    <h2>学生性别：{{ gender }}</h2>
  </div>
</template>

<script>
export default {
  name: "StudentInfo",
  data() {
    return {
      name: "阿占",
      gender: "男",
    };
  },
};
</script>
<style scoped>
  .demo{
    background-color: orange;
  }
</style>